import {formatDate} from '../components/date.js';

export const editInlineAndCellColumn = [
    {
        title: '序号',
        type: 'index',
        width: 80,
        align: 'center'
    },
    {
        title: '场景名称',
        align: 'center',
        key: 'scenesName'
    },
    {
        title: '分值',
        align: 'center',
        key: 'scenesScore',
        render:function(){
        	return this.row.scenesScore +"分"
        }
    },
    {
        title: '场景',
        align: 'center',
        key: 'scenesType',
        render: function (e) {  
            if(this.row.scenesType){
        		return '路段';
        	}else{
        		return '场景'
        	}  
        }  
    },
    {
        title: '违规项',
        align: 'center',
        key: 'illegalCount',
        render:function(){
        	return this.row.illegalCount +"项"
        }
    },
    {
        title: '操作',
        align: 'center',
        width: 350,
        key: 'handle',
        handle: ['edit','Detail','delete']
    }
];

const tableData = {
    editInlineAndCellColumn: editInlineAndCellColumn,
};


export default tableData;
